<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
  <div>用户登录</div>
  <form action="/login/" method="post">
    {% csrf_token %}
    <input type="text" name="uname" placeholder="输入用户名" /><br />
    <input type="password" name="pwd" placeholder="输入密码" /><br />
    <input type="submit" value="提 交" /><br />
    <span style="color:red">{{ error }}</span>

  </form>
</body>
</html>